package com.andy.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@FeignClient(name="lagou-email-server")
@Component
public interface EmailService {

    @RequestMapping("/email/{email}/{code}")
    public boolean email(@PathVariable(value = "email") String email,@PathVariable(value = "code") String code);

}
